<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var Array = [1, 0, 0, 0, 6, 11, 22, 33];
        var newArray = [];
        for (var i = 0; i < Array.length; i++) {
            if (Array[i] != 0) {
                newArray[newArray.length] = Array[i];
            }
        }
        console.log(newArray);
    </script>
</head>

<body>

</body>

</html>